# poem = "x x x x\t\n\txx\nxx\\ss"
# print(poem)
#
# param_list = (poem.split(sep=" "))
# print(param_list)

num_str = "0123456789"

print(num_str[2:6])
print(num_str[2:])
print(num_str[:6])
print(num_str[:])
print(num_str[::2])  # :2为步长
print(num_str[1::2])
print(num_str[2:-1])
print(num_str[-2:])
print(num_str[-1::-1])  # 从末尾开始步长是-1可实现逆序
print(num_str[::-1])  # 从末尾开始步长是-1可实现逆序
